<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>出租车管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/project/advert_list.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/driver/info2.js?date="+new Date();></script>
</head>
<body>

<form class="layui-form" id="form" action="">
    <input type="hidden" name="id" id="id" th:value="${user.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="userName" id="userName" readonly lay-verify="required" th:value="${user.userName}" autocomplete="off" placeholder="请输入用户名" class="layui-input">
        </div>
    </div>
    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label">真实姓名</label>-->
        <!--<div class="layui-input-block layui-col-md5">-->
            <!--<input type="text" name="trueName" id="trueName" readonly lay-verify="required"  th:value="${user.trueName}" autocomplete="off" placeholder="请输入真名" class="layui-input">-->
        <!--</div>-->
    <!--</div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block layui-col-md5">
            <select name="type"  id="type" >
                <option value="1" th:selected="${user.type == '1'}">司机</option>
                <option value="2" th:selected="${user.type =='2'}">管理员</option>
                <option value="3" th:selected="${user.type =='3'}">超级管理员</option>
            </select>
        </div>
    </div>

    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label">身份证</label>-->
        <!--<div class="layui-input-block layui-col-md5">-->
            <!--<input type="text" name="idCard" id="idCard"  readonly lay-verify="required" th:value="${user.idCard}" autocomplete="off" placeholder="请输入身份证号" class="layui-input">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label">密码</label>-->
        <!--<div class="layui-input-block layui-col-md5">-->
            <!--<input type="text" name="password" id="password" lay-verify="required" th:value="${user.password}" placeholder="请输入密码" autocomplete="off" class="layui-input">-->
        <!--</div>-->
    <!--</div>-->

    <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">手机号</label>-->
            <!--<div class="layui-input-block layui-col-md5">-->
                <!--<input type="tel" name="phone" id="phone" lay-verify="required|phone" th:value="${user.phone}" placeholder="请输入手机号" autocomplete="off" class="layui-input">-->
            <!--</div>-->
    <!--</div>-->

    <div class="layui-form-item layui-col-md-offset1" style="margin-bottom: 25px;">
        <div class="layui-btn" id="submit" lay-filter="form" lay-submit>修改</div>
    </div>
</form>
</body>
</html>